<?php include PATH_TPL."/admin/tpl.header.phtml"?>
<div class="main-container inner">
    <div class="main-content">
        <div class="container-fluid">
            <div class="row bt">
                <div class="col-lg-12 bg">
                    <ol class="breadcrumb">
                        <li class="active">
                            <i class="fa  fa-fw fa-reorder"></i>  反馈信息列表
                       </li>
                    </ol>
                </div>
            </div>
            <div class="row">
                <div class="col-md-4">
<!--                    <a class="btn btn-success" href="#">反馈信息</a> -->
                </div>
                <div class="col-md-8">
                    <form method="post" action="/admin_feedback">
                        <div class="form-group col-md-6">
                            <div class="input-group date form_date" data-date="<?=date("Y-m-d",time())?>" data-date-format="yyyy-mm-dd" data-link-field="updated">
                                <input class="form-control" size="16" type="text" value="" readonly placeholder="输入处理日期搜索">
                                <span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span>
                                <span class="input-group-addon"><span class="glyphicon glyphicon-th"></span></span>
                            </div>
                            <input type="hidden" id="updated" value="" name="updated" /><br/>
                        </div>

                        <div class="form-group input-group col-md-6 pull-righ">
                            <input type="text" placeholder="输入处理人名字或者反馈内容关键词搜索" name="key" class="form-control">
                            <span class="input-group-btn">
                              <button type="button" class="btn btn-default" id="search"><i class="fa fa-search"></i></button>
                            </span>
                        </div>
                    </form>
                </div>

                </div>
            </div>

            <div class="panel-body text-center">
                <table class="table table-hover" id="sample-table-1">
                    <thead>
                        <tr>
                            <td>编号</td>
                            <td>反馈人名字</td>
                            <td>反馈内容</td>
                            <td>反馈人手机号</td>
                            <td>反馈时间</td>
                            <td>反馈人ip</td>
                            <td>处理状态</td>
                            <td>处理人</td>
                            <td>交互内容</td>
                            <td>处理时间</td>
                            <td>操作</td>
                        </tr>
                    </thead>
                    <?foreach($tDatas as $tRow){?>
                    <tr>
                        <td><?=$tRow['id']?></td>
                        <td><?=empty($tRow['name'])?"无":$tRow['name']?></td>
                        <td><?=$tRow['content']?></td>
                        <td><?=$tRow['phone']?></td>
                        <td><?=date('Y-m-d H:i:s',$tRow['created'])?></td>
                        <td><?=$tRow['ip']?></td>
                        <td><?=empty($tRow['status'])?"未处理":"已处理"?></td>
                        <td><?=$tRow['handle_name']?></td>
                        <td><?=$tRow['sessions']?></td>
                        <td><?=empty($tRow['updated'])?'-':date('Y-m-d H:i',$tRow['updated'])?></td>
                        <td>
                            <div class="visible-md visible-lg hidden-sm hidden-xs">
                                <a href="/admin_feedback/edit?id=<?=$tRow['id']?>" class="btn btn-blue btn-xs tooltips" data-placement="top" data-original-title="编辑处理"><i class="fa fa-edit"></i></a>
                            </div>

                            <div class="visible-xs visible-sm hidden-md hidden-lg">
                                <div class="btn-group">
                                    <a class="btn btn-green dropdown-toggle btn-sm" data-toggle="dropdown" href="#">
                                        <i class="fa fa-cog"></i> <span class="caret"></span>
                                    </a>
                                    <ul role="menu" class="dropdown-menu pull-right dropdown-dark">
                                        <li>
                                            <a role="menuitem" tabindex="-1" href="/admin_feedback/edit?id=<?=$tRow['id']?>">
                                                <i class="fa fa-edit"></i>编辑处理
                                            </a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </td>
                    </tr>
<?}?>
                </table>
                <?=$tShow?>
            </div>
        </div>
        <div class="subviews">
            <div class="subviews-container"></div>
        </div>
    </div>
    <!-- end: PAGE -->
</div>
<!-- end: MAIN CONTAINER -->
<script type="text/javascript" src="/plugins/datetimepicker/js/bootstrap-datetimepicker.js"></script>
<script type="text/javascript" src="/plugins/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
<script type="text/javascript">
$('.form_date').datetimepicker({
    language:  'zh-CN',
    weekStart: 1,
    todayBtn:  1,
    autoclose: 1,
    todayHighlight: 1,
    startView: 2,
    minView: 2,
    startDate:'2016-01-01',
    endDate:'2030-12-30',
    pickerPosition: "bottom-left",
    forceParse: 1
});
</script>

<script>
$('#search').click(function(){
    $('form').submit();
});
</script>
<?php include PATH_TPL."/admin/tpl.footer.phtml"?>
